using UnityEngine;

public class RCCCarCameraConfig : MonoBehaviour
{
	public float distance = 10f;

	public float height = 5f;

	private void OnEnable()
	{
		Camera component = UnityEngine.Object.FindObjectOfType<RCCCarCamera>().GetComponent<Camera>();
		if ((bool)component && (bool)component.GetComponent<RCCCarCamera>())
		{
			component.GetComponent<RCCCarCamera>().distance = distance;
			component.GetComponent<RCCCarCamera>().height = height;
		}
	}
}
